/**
 * 
 */
package com.heliang.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.heliang.exception.JsonException;

import springfox.documentation.annotations.ApiIgnore;

/**
 * @author heliang 2016年11月4日
 */
@ApiIgnore
@Controller
public class ErrorDefShowController {
	
	@RequestMapping("/errorshow")
	public String show() throws Exception {
		throw new Exception("error happened 产生错误");
	}

	@RequestMapping("/jsonerror")
	public String jsonerror() throws JsonException {
		throw new JsonException("error happened Json 发生错误");
	}
}
